package com.poly.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.poly.common.database.domain.DefaultBaseEntity;
import lombok.Data;

/**
 * 应用菜单对象 sys_app_menu
 *
 * @author poly
 * @date 2024-01-02
 */
@Data
@TableName(value = "sys_app_menu")
public class SysAppMenu extends DefaultBaseEntity
{
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID, value = "id")
    private Long id;

    /**
     * 上级编号
     */
    @TableField(value = "parent_id")
    private Long parentId;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 图标
     */
    @TableField(value = "icon")
    private String icon;

    /**
     * 组件路由
     */
    @TableField(value = "component")
    private String component;

    /**
     * 参数
     */
    @TableField(value = "params")
    private String params;

    /**
     * 序号
     */
    @TableField(value = "sort")
    private Long sort;

    /**
     * 授权类型（0公开，1角色授权
     */
    @TableField(value = "auth_type")
    private Integer authType;

    /**
     * 包名
     */
    @TableField(value = "package_name")
    private String packageName;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Integer status;



}
